import pop from '../utils/pop';
import env from '../config/env';

const ticket = localStorage.ticket;
const prefix = env.gwApiPrefix;
const errorHandler = error => {
	pop.error("加载数据失败！");
	console.log(error);
}

export default {
	getPaperInfo(estimateExamId) {
		return axios.get(`${prefix}/api/zsapi/estimate/exams/${estimateExamId}/paper?ticket=${ticket}`).catch(errorHandler);
	}
}